<template>
  <view>
    <TUICallKit></TUICallKit>
    <view style="font-size: 40rpx; text-align: center; width: 100%; margin-top: 300rpx">请再当前页面中，耐心等待医生视频呼叫...</view>
  </view>
</template>
<script>
import * as GenerateTestUserSig from '../debug/GenerateTestUserSig-es.js';
import { TUICallKitServer } from '../src/index';
import TUICallKit from '../src/Components/TUICallKit.vue';
export default {
  components: {
    TUICallKit
  },
  data() {
    return {
      isLogin: false,
      userID: ''
    };
  },
  onLoad() {
    this.init();
  },
  methods: {
    init() {
      this.api({
        url: '/api/chat/getSign',
        method: 'post'
      }).then((data) => {
        this.$nextTick(() => {
          TUICallKitServer.init({
            sdkAppID: 1600052101,
            userID: String(uni.getStorageSync('user_info').id),
            userSig: data.data
          });
        });
      });
    }
  }
};
</script>
<style>
.loginBox {
  margin-top: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

input {
  display: flex;
  font-size: 20px;
}

.login {
  width: 100vw;
  bottom: 5vh;
  margin: 70rpx;
}

.login button {
  width: 80%;
  background-color: #006eff;
  border-radius: 50px;
  color: white;
}
</style>
